Optimal. Leaf size=610 \[ \frac {2 (a-b) \sqrt {a+b} \left (110 a^4 b B-3069 a^2 b^3 B-1617 b^5 B-40 a^5 C-15 a^3 b^2 (33 A+17 C)-15 a b^4 (319 A+247 C)\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^4 d}+\frac {2 (a-b) \sqrt {a+b} \left (10 a^3 b (11 B-3 C)-40 a^4 C-15 a^2 b^2 (33 A-121 B+19 C)-3 b^4 (275 A-539 B+225 C)+6 a b^3 (660 A-209 B+505 C)\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^3 d}-\frac {2 \left (110 a^3 b B-1254 a b^3 B-40 a^4 C-75 b^4 (11 A+9 C)-15 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}-\frac {2 \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.46, antiderivative size = 610, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 6, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {4177, 4167,
4087, 4090, 3917, 4089} \begin {gather*} \frac {2 \tan (c+d x) \left (8 a^2 C-22 a b B+99 A b^2+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2}}{693 b^2 d}-\frac {2 \tan (c+d x) \left (-40 a^3 C+110 a^2 b B-5 a b^2 (99 A+67 C)-539 b^3 B\right ) (a+b \sec (c+d x))^{3/2}}{3465 b^2 d}+\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \left (-40 a^4 C+10 a^3 b (11 B-3 C)-15 a^2 b^2 (33 A-121 B+19 C)+6 a b^3 (660 A-209 B+505 C)-3 b^4 (275 A-539 B+225 C)\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3465 b^3 d}-\frac {2 \tan (c+d x) \left (-40 a^4 C+110 a^3 b B-15 a^2 b^2 (33 A+19 C)-1254 a b^3 B-75 b^4 (11 A+9 C)\right ) \sqrt {a+b \sec (c+d x)}}{3465 b^2 d}+\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \left (-40 a^5 C+110 a^4 b B-15 a^3 b^2 (33 A+17 C)-3069 a^2 b^3 B-15 a b^4 (319 A+247 C)-1617 b^5 B\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3465 b^4 d}+\frac {2 (11 b B-4 a C) \tan (c+d x) (a+b \sec (c+d x))^{7/2}}{99 b^2 d}+\frac {2 C \tan (c+d x) \sec (c+d x) (a+b \sec (c+d x))^{7/2}}{11 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3917
Rule 4087
Rule 4089
Rule 4090
Rule 4167
Rule 4177
Rubi steps
\begin {align*} \int \sec ^2(c+d x) (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}+\frac {2 \int \sec (c+d x) (a+b \sec (c+d x))^{5/2} \left (a C+\frac {1}{2} b (11 A+9 C) \sec (c+d x)+\frac {1}{2} (11 b B-4 a C) \sec ^2(c+d x)\right ) \, dx}{11 b}\\ &=\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}+\frac {4 \int \sec (c+d x) (a+b \sec (c+d x))^{5/2} \left (\frac {1}{4} b (77 b B-10 a C)+\frac {1}{4} \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) \sec (c+d x)\right ) \, dx}{99 b^2}\\ &=\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}+\frac {8 \int \sec (c+d x) (a+b \sec (c+d x))^{3/2} \left (\frac {3}{8} b \left (165 A b^2+143 a b B-10 a^2 C+135 b^2 C\right )-\frac {1}{8} \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) \sec (c+d x)\right ) \, dx}{693 b^2}\\ &=-\frac {2 \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}+\frac {16 \int \sec (c+d x) \sqrt {a+b \sec (c+d x)} \left (\frac {3}{16} b \left (605 a^2 b B+539 b^3 B-10 a^3 C+10 a b^2 (132 A+101 C)\right )-\frac {3}{16} \left (110 a^3 b B-1254 a b^3 B-40 a^4 C-75 b^4 (11 A+9 C)-15 a^2 b^2 (33 A+19 C)\right ) \sec (c+d x)\right ) \, dx}{3465 b^2}\\ &=-\frac {2 \left (110 a^3 b B-1254 a b^3 B-40 a^4 C-75 b^4 (11 A+9 C)-15 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}-\frac {2 \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}+\frac {32 \int \frac {\sec (c+d x) \left (\frac {3}{32} b \left (1705 a^3 b B+2871 a b^3 B+10 a^4 C+75 b^4 (11 A+9 C)+15 a^2 b^2 (297 A+221 C)\right )-\frac {3}{32} \left (110 a^4 b B-3069 a^2 b^3 B-1617 b^5 B-40 a^5 C-15 a^3 b^2 (33 A+17 C)-15 a b^4 (319 A+247 C)\right ) \sec (c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{10395 b^2}\\ &=-\frac {2 \left (110 a^3 b B-1254 a b^3 B-40 a^4 C-75 b^4 (11 A+9 C)-15 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}-\frac {2 \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}-\frac {\left (110 a^4 b B-3069 a^2 b^3 B-1617 b^5 B-40 a^5 C-15 a^3 b^2 (33 A+17 C)-15 a b^4 (319 A+247 C)\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{3465 b^2}+\frac {\left (32 \left (\frac {3}{32} b \left (1705 a^3 b B+2871 a b^3 B+10 a^4 C+75 b^4 (11 A+9 C)+15 a^2 b^2 (297 A+221 C)\right )+\frac {3}{32} \left (110 a^4 b B-3069 a^2 b^3 B-1617 b^5 B-40 a^5 C-15 a^3 b^2 (33 A+17 C)-15 a b^4 (319 A+247 C)\right )\right )\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{10395 b^2}\\ &=\frac {2 (a-b) \sqrt {a+b} \left (110 a^4 b B-3069 a^2 b^3 B-1617 b^5 B-40 a^5 C-15 a^3 b^2 (33 A+17 C)-15 a b^4 (319 A+247 C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^4 d}+\frac {2 (a-b) \sqrt {a+b} \left (a^3 b (110 B-30 C)-40 a^4 C-15 a^2 b^2 (33 A-121 B+19 C)-3 b^4 (275 A-539 B+225 C)+6 a b^3 (660 A-209 B+505 C)\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{3465 b^3 d}-\frac {2 \left (110 a^3 b B-1254 a b^3 B-40 a^4 C-75 b^4 (11 A+9 C)-15 a^2 b^2 (33 A+19 C)\right ) \sqrt {a+b \sec (c+d x)} \tan (c+d x)}{3465 b^2 d}-\frac {2 \left (110 a^2 b B-539 b^3 B-40 a^3 C-5 a b^2 (99 A+67 C)\right ) (a+b \sec (c+d x))^{3/2} \tan (c+d x)}{3465 b^2 d}+\frac {2 \left (99 A b^2-22 a b B+8 a^2 C+81 b^2 C\right ) (a+b \sec (c+d x))^{5/2} \tan (c+d x)}{693 b^2 d}+\frac {2 (11 b B-4 a C) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{99 b^2 d}+\frac {2 C \sec (c+d x) (a+b \sec (c+d x))^{7/2} \tan (c+d x)}{11 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 21.88, size = 1090, normalized size = 1.79 \begin {gather*} -\frac {4 (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left ((a+b) \left (-110 a^4 b B+3069 a^2 b^3 B+1617 b^5 B+40 a^5 C+15 a^3 b^2 (33 A+17 C)+15 a b^4 (319 A+247 C)\right ) E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}-b (a+b) \left (40 a^4 C-10 a^3 b (11 B+3 C)+15 a^2 b^2 (33 A+121 B+19 C)+3 b^4 (275 A+539 B+225 C)+6 a b^3 (660 A+209 B+505 C)\right ) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{a+b}}+\left (-110 a^4 b B+3069 a^2 b^3 B+1617 b^5 B+40 a^5 C+15 a^3 b^2 (33 A+17 C)+15 a b^4 (319 A+247 C)\right ) \tan \left (\frac {1}{2} (c+d x)\right ) \left (b-b \tan ^4\left (\frac {1}{2} (c+d x)\right )+a \left (-1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^2\right )\right )}{3465 b^3 d (b+a \cos (c+d x))^{5/2} (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {9}{2}}(c+d x) \left (1+\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )^{3/2} \sqrt {\frac {a+b-a \tan ^2\left (\frac {1}{2} (c+d x)\right )+b \tan ^2\left (\frac {1}{2} (c+d x)\right )}{1+\tan ^2\left (\frac {1}{2} (c+d x)\right )}}}+\frac {\cos ^4(c+d x) (a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {4 \left (495 a^3 A b^2+4785 a A b^4-110 a^4 b B+3069 a^2 b^3 B+1617 b^5 B+40 a^5 C+255 a^3 b^2 C+3705 a b^4 C\right ) \sin (c+d x)}{3465 b^3}+\frac {4}{99} \sec ^4(c+d x) \left (11 b^2 B \sin (c+d x)+23 a b C \sin (c+d x)\right )+\frac {4}{693} \sec ^3(c+d x) \left (99 A b^2 \sin (c+d x)+209 a b B \sin (c+d x)+113 a^2 C \sin (c+d x)+81 b^2 C \sin (c+d x)\right )+\frac {4 \sec ^2(c+d x) \left (1485 a A b^2 \sin (c+d x)+825 a^2 b B \sin (c+d x)+539 b^3 B \sin (c+d x)+15 a^3 C \sin (c+d x)+1145 a b^2 C \sin (c+d x)\right )}{3465 b}+\frac {4 \sec (c+d x) \left (1485 a^2 A b^2 \sin (c+d x)+825 A b^4 \sin (c+d x)+55 a^3 b B \sin (c+d x)+1793 a b^3 B \sin (c+d x)-20 a^4 C \sin (c+d x)+1025 a^2 b^2 C \sin (c+d x)+675 b^4 C \sin (c+d x)\right )}{3465 b^2}+\frac {4}{11} b^2 C \sec ^4(c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x))^2 (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(7207\) vs.
\(2(568)=1136\).
time = 1.66, size = 7208, normalized size = 11.82
method | result | size |
default | \(\text {Expression too large to display}\) | \(7208\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\cos \left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________